var mongoose =require('mongoose');
mongoose.connect('mongodb://localhost/android');
var schema = mongoose.Schema;
var svideoSchema = new schema({
    title:{
        type:String,
        required:true
    },
    type:{
        type:String,
        required:true
    },
    content:{
        type:String,
        required:true
    },
    image:{
        type:String,
        required:true
    },
    page:{
        type:Number,
        required:true
    },
});

var svideo = mongoose.model('SVideo',svideoSchema);
// var svideo = new svideo({
//     title:'123',
//     type:'推荐',
//     content:'123',
//     image:'1',
//     page:0,
// });
// svideo.save()

module.exports = svideo;